import React from "react";
import { HashRouter, Route, Switch } from "react-router-dom";
import Home from "./pages/Home";
import Login from "./pages/Login";
import HotMusic from "./pages/HotMusic";
import Search from "./pages/Search";
import Detail from "./pages/Detail/Detail";

const Routes = () => {
  return (
    <HashRouter>
      <Switch>
        <Route path="/" exact component={Home} />
        <Route path="/login" exact component={Login} />
        <Route path="/hot" exact component={HotMusic} />
        <Route path="/search" exact component={Search} />
        <Route path="/detail" exact component={Detail} />
      </Switch>
    </HashRouter>
  );
};

export default Routes;
